from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton, QVBoxLayout, QHBoxLayout,
                             QMenuBar, QAction, QStyleFactory, QLabel, QTextEdit, QSplitter,
                             QSizePolicy, QCheckBox, QComboBox, QGroupBox, QMenu, QMessageBox)
from PyQt5.QtGui import QFont, QPalette, QColor


class UQTextEdit(QTextEdit):
    def backgroundColor(self, color):
        # palette = self.palette()
        # palette.setColor(QPalette.Window, QColor(color))
        # self.setPalette(palette)
        self.setStyleSheet(f"background-color:{color}; color: {color};")
